Skip to content

🎨 Improve STATIC_ASSERT#246

Merged
lukevalenty merged 1 commit intointel:mainfrom
elbeno:upgrade-static-assert-format
Jul 10, 2025
Merged

🎨 Improve STATIC_ASSERT#246
lukevalenty merged 1 commit intointel:mainfrom
elbeno:upgrade-static-assert-format

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 10, 2025

Problem:

  • Now that STDX_CT_FORMAT exists, STATIC_ASSERT is clunky when it still has to wrap arguments with CX_VALUE.
  • Docs for the latest ct_string and ct_format functionality are lacking.

Solution:

  • Use STDX_CT_FORMAT inside STATIC_ASSERT for a better experience.
  • Update the ct_string and ct_format docs.

Problem:
- Now that `STDX_CT_FORMAT` exists, `STATIC_ASSERT` is clunky when it still has to
  wrap arguments with `CX_VALUE`.
- Docs for the latest `ct_string` and `ct_format` functionality are lacking.

Solution:
- Use `STDX_CT_FORMAT` inside `STATIC_ASSERT` for a better experience.
- Update the `ct_string` and `ct_format` docs.
Copy link
Contributor

@lukevalenty lukevalenty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome 😎

@lukevalenty lukevalenty enabled auto-merge July 10, 2025 18:06
@lukevalenty lukevalenty merged commit 2e5c17f into intel:main Jul 10, 2025
42 checks passed
@elbeno elbeno deleted the upgrade-static-assert-format branch October 16, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants